This Method Doesn't Return a Value Error

You used a method in an expression as though it returned a value, but it doesn't.


Example

The user-written method myColor is not a function, so this syntax in a calling method is not correct

Dim c as Color
c=myColor //does not return a color

:


See Also

Function, Return, Sub statements.